package com.leyou.item.mapper;

import com.leyou.item.entity.Sku;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;
import org.springframework.stereotype.Repository;
import tk.mybatis.mapper.common.special.InsertListMapper;

@Repository
public interface SkuMapper extends BaseMapper<Sku>, InsertListMapper<Sku> {

    /**
     * 减去库存
     */
    int minusStock(@Param("skuId") Long skuId, @Param("num") Integer num);
}
